// Programming_Scala/src/ch12/function-types-script.scala

val capitalizer = ( s: String ) => s.toUpperCase

val capitalizer2 = new Function1[ String, String ] {
  def apply( s: String ) = s.toUpperCase
}

println( List( "Programming", "Scala" ) map capitalizer )
println( List( "Programming", "Scala" ) map capitalizer2 )
